# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=python-gwebsockets
_pkgname=gwebsockets
pkgver=0.7
pkgrel=6
pkgdesc="GLib based websocket server written in python"
arch=('any')
url="https://github.com/sugarlabs/gwebsockets"
license=('Apache')
depends=('python-gobject')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sugarlabs/$_pkgname/archive/v$pkgver.tar.gz")
sha256sums=('116e7e9e2e316011b88c2410e5a9b86c93db1e133ff76534d225302810873d68')

build() {
  cd $_pkgname-$pkgver
  python setup.py build
}

package() {
  cd $_pkgname-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}
